<?php

namespace App\Providers;

use App\Services\CodeService;
use App\Services\CosService;
use App\Services\TencentService;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->instance(CodeService::class, new CodeService);
        $this->app->instance(TencentService::class, new TencentService);
        $this->app->instance(CosService::class, new CosService);
        //
        if ($this->app->environment('local')) {
            $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
            $this->app->register(TelescopeServiceProvider::class);
        }

    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
